package com.funtl.screw.admin.mapper;

import com.funtl.screw.admin.entity.SysRole;
import com.funtl.screw.common.data.permission.ServiceBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Lusifer
 * @since 2017-10-29
 */
@Mapper
public interface SysRoleMapper extends ServiceBaseMapper<SysRole> {

    /**
     * 通过用户ID，查询角色信息
     */
    List<SysRole> listRolesByUserId(Long userId);
}
